<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{:SEO('article-list','title',array('CATNEME'=>'全部'))}</title>
<meta name="keywords" content="{:SEO('article-list','keywords')}">
<meta name="description" content="{:SEO('article-list','description')}">
<link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/article.css" rel="stylesheet" type="text/css">
<include file="public:header" />

<div class="article">

  <div class="arl">
  
  
    <div class="tit">
	
			<h1>文章/经验</h1>
	
			 <form action="{:RU('so/view',array('type'=>'2'))}" method="get" id="J_so_from">
				 <div class="sobox">
						<div class="inputbox">
						<input type="text" class="so"  name="key" placeholder="请输入关键词">
						<input name="" type="submit" value="" class="btn">
						</div>
			  </div>
			 {:build_url_param('so/view',array('type'=>'2'))}
		  </form>
		   <script type="text/javascript">
				$("#J_so_from").submit( function () {
				key=$("#J_so_from input[name=key]").val();
				  if (key==''){
					disapperTooltip("remind","请填写关键字");
					 return false;
				  }else{
				  return true;	 
				  }
				});
			</script>
		  
	</div>  
	
	
	<ytata:cat listname="li" type="article" pid="0"/>
	<notempty name="li.list">
    <div class="anav">
	  	<a class="nli <if condition="$Think.get.cat eq '' ">select</if>" href="{:RU('article/lists',array('cat'=>''))}">全部</a>
		
		<volist name="li.list" id="li">
		<a href="{$li.aurl}" class="nli <if condition="$Think.get.cat eq $li.c_id ">select</if>">{$li.c_title}</a>
		</volist>
		<div class="clear"></div>
	</div>
	</notempty>
	
			<div class="oder link_gray3">
			  <div class="menus">
				<a  href="{:RU('article/lists',array('sort'=>''))}" <if condition="$Think.get.sort eq '' ">class="select" </if>>最新</a>|
				<a  href="{:RU('article/lists',array('sort'=>'hot'))}" <if condition="$Think.get.sort eq 'hot' ">class="select" </if>>热门</a>|
				<a  href="{:RU('article/lists',array('sort'=>'exc'))}" <if condition="$Think.get.sort eq 'exc' ">class="select" </if>>精华</a>
				</div>
			</div>
			
			
	<!-- -->	
<ytata:article listname="new"  category1="$_GET['cat']" category2="$_GET['cat1']" page="1" num="5" sort="$_GET['sort']" />
<volist name="new.list" id="li">
            <div class="alist">
			  	<div class="imgbox">
					<a href="{$li.url}"><img src="{$li.img}" border="0"></a>
				</div>
			
			  <div class="txtbox">
				  <div class="atit link_gray3">
				  <h4>
				  <if condition="$li.excellent eq '1' "><span class="exc">精华</span></if>
				  <a href="{$li.url}">{$li.title}</a>
				  </h4>
				  </div>
				  
			      <div class="time link_gray3">{$li.addtime_str}上传&nbsp;/&nbsp;人气<span class="co">{$li.click}</span>&nbsp;/&nbsp;推荐<span class="co">{$li.praise}</span>
				   <notempty name="li.tags">
				  <span class="tag">
				 
					<volist name="li.tags" id="tagsli">
							 <a   href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
					  </volist> 
					 
				</span>
				 </notempty>
				  </div>
				  
			      <div class="txt">{$li.content_cut}
				    <div class="userimg"><img src="{$li.user.avatar}" border="0"></div>
				    <div class="username link_gray3 substring"><a href="{$li.user.user_url}" target="_blank">{$li.user.nickname}</a></div>
			      </div>
			  </div>
				<div class="clear"></div>
			</div>
			
			<!-- -->
 </volist>
<empty name="new.list">
<div class="infoempty"> 暂时木有内容呀～～</div>
</empty>

<!-- -->
<div class="uupage">{$new.page}</div>	
<!-- -->
			
  </div>
  <div class="arr">
	<if condition="(C('YTATA_SMS_OPEN') eq '1') OR ($Think.session.ytata.uid NEQ '')">
        <a class="btn share" href="{:RU('article/add')}">发表文章</a>
	<else />
        <a class="btn share J_user_login" href="javascript:void(0);">发表文章</a>
	</if>
	
	<div class="rec">
          <div class="tit">精华文章</div>

                      <div class="clear"></div>
							<ytata:article listname="new"  page="0" num="5" sort="exc" />
							<volist name="new.list" id="li">
										<div class="reli link_gray6">
												 <a href="{$li.url}">{$li.title}</a>
										<div class="pra">{$li.praise}赞</div>	
										</div>
							</volist>

		</div>
		
 
		
		
    	<div class="tagbox">
          <div class="tit">热议话题</div>
          <div class="more link_gray6"><a href="{:RU('tag/lists')}">更多></a></div>
                      <div class="clear"></div>
          			  <ytata:tag listname="tags"  page="0" sort="hot" num="40"/>
					 <volist name="tags.list" id="tli">
          			 <a class="tag" href="{$tli.url}">{$tli.tag}<span>({$tli.count_question})</span></a>
					 </volist>
                      <div class="clear"></div>
        </div>
	
		<include file="public:rankside" /> <!--排行-->
		
  </div>
  <div class="clear"></div>
  
</div>
































<include file="public:footer" />
</body>
</html>
